package com.yhy.wxzn.wcs.websocket;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Slf4j
@Component()
public class WareHouseMonitorScheduled {



    @Scheduled(cron = "0/1 * * * * ?")
    public void sendRgvInfo(){
        try {
            WareHouseMonitorWebSocketServer.sendRgvInfo();
        } catch (Exception e){
            log.error(e.getMessage(),e);
        }
    }
    @Scheduled(cron = "0/1 * * * * ?")
    public void sendLifterInfo(){
        try {
            //WareHouseMonitorWebSocketServer.sendLifterInfo();
        } catch (Exception e){
            log.error(e.getMessage(),e);
        }
    }


    @Scheduled(cron = "0/1 * * * * ?")
    public void sendFloorInfo(){
        try {
            WareHouseMonitorWebSocketServer.sendFloorInfo();
        } catch (Exception e){
            log.error(e.getMessage(),e);
        }
    }


    @Scheduled(cron = "0/1 * * * * ?")
    public void sendNodeInfo(){
        try {
            WareHouseMonitorWebSocketServer.sendNodeInfo();
        } catch (Exception e){
            log.error(e.getMessage(),e);
        }
    }
}
